--- Makefile.am~	2012-10-14 17:50:31.000000000 +0800
+++ Makefile.am	2012-10-14 18:22:05.000000000 +0800
@@ -119,7 +119,7 @@
 
 # Sources for gtv
 gtv_SOURCES = gtv.c gtv.h
-gtv_LDADD = @GTK_LIBS@ libsmpeg.la
+gtv_LDADD = @GTK_LIBS@ libsmpeg.la -lX11
 
 # Sources for glmovie
 glmovie_SOURCES = glmovie-tile.c glmovie.c glmovie.h
